#pragma once
#include <stddef.h>
#include <stdint.h>

uint16_t get_uint16_from_be_stream(const uint8_t* p);
uint32_t get_uint32_from_be_stream(const uint8_t* p);
uint64_t get_uint64_from_be_stream(const uint8_t* p);

void put_uint16_into_be_stream(uint8_t* buf, uint16_t n);
void put_uint32_into_be_stream(uint8_t* buf, uint32_t n);
void put_uint64_into_be_stream(uint8_t* buf, uint64_t n);

